package com.suntianci.stock.pojo.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.joda.time.DateTime;

import java.math.BigDecimal;

/**
 * @ClassName OuterMarketDomain
 * @Author 孙天赐
 * @Date 2025/1/7 19:34
 * @Description TODO: 封装国内大盘数据的实体类
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@Builder
@ApiModel(description = "封装国内大盘数据的实体类")
public class OuterMarketDomain {
    /**
     * 大盘名称
     */
    @ApiModelProperty(value = "大盘名称")
    private String name;

    /**
     * 当前大盘点
     */
    @ApiModelProperty(value = "当前大盘点")
    private BigDecimal curPoint;

    /**
     * 涨跌值
     */
    @ApiModelProperty(value = "涨跌值")
    private BigDecimal upDown;

    /**
     * 涨幅
     */
    @ApiModelProperty(value = "涨幅")
    private BigDecimal rose;

    /**
     * 当前时间
     * 格式与其他不同，所以类型为String
     */
    @ApiModelProperty(value = "当前时间")
    private String curTime;
}
